import pandas as pd
from matplotlib import pyplot as plt

tbl = pd.read_csv('result',  sep=' ')

tbl['Time'] = (tbl['Time'] - min(tbl['Time']))/(max(tbl['Time'])-min(tbl['Time']))
tbl['Space'] = (tbl['Space'] - min(tbl['Space']))/(max(tbl['Space'])-min(tbl['Space']))
plt.figure(figsize = (10, 10))

plt.plot(tbl[['Time']])
plt.ylabel('Time Consuming')
plt.xlabel('Spare_capacity')
plt.title(f'Time Curve, N={len(tbl)}')
plt.legend(['Time'])
plt.savefig(f'curve{len(tbl)}.png', facecolor = 'w')
